import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import {router} from './router/router'
import locale from 'element-plus/dist/locale/zh-cn.js'
import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
import '@kangc/v-md-editor/lib/theme/style/github.css';

// highlightjs
import hljs from 'highlight.js';
VMdPreview.use(githubTheme, {
  Hljs: hljs,
});

console.log('[ENV]', import.meta.env);

const pinia = createPinia()

const app = createApp(App)
app.use(ElementPlus,{
    locale
})
app.use(pinia)
app.use(router)
app.use(VMdPreview);

app.mount('#app')
